<extend name="Top::Top" />

 <block name="conter">
    <div class="rig_lm03">
      <div class="title"><img src="__PUBLIC__/Admin/admin_images/listicon.jpg" class="icon" style="padding-top:13px;">
        <h2>商品管理中心</h2>
      </div>
     
      <div class="detail">
        <div class="inner03">

          <div id="tabCot_product" class="zhutitab">
            <div class="tabContainer">
            <form action="{:U('index')}" method="get">
              <a href="{:U('Goods/adds')}"class="tabContainer_add">添加商品</a>
               <input type="text" name="name1" class="tabContainer_in1" /> <input type="submit" value="搜索" class="tabContainer_in2" />
                <input type="checkbox" name="is_new1" value="1">新品
                <input type="checkbox" name="is_hot1" value="1">热销
                <input type="checkbox" name="is_bast1" value="1">上架
            </form>   
              <div class="clear"></div>
            </div>
            <div id="tabCot_product_1" class="tabCot" >
              <table class="tabindex" width="1063" border="0" cellpadding="0" cellspacing="0" align="center">
              
                <tr><!--         <span class="titlab">库存</span><span class="xila">&or;</span> -->
                  <th width="80" bgcolor="#f8f8f8" scope="col">ID</th>
                  <th width="100" bgcolor="#f8f8f8" >商品名</th>
                  <th width="180" bgcolor="#f8f8f8" scope="col">图片</th>
                  <th width="100" bgcolor="#f8f8f8" scope="col">分类</th>
                  <th width="100" bgcolor="#f8f8f8" scope="col">价格</th>
                  <th width="74" bgcolor="#f8f8f8" scope="col">库存</th>
                  <th width="74" bgcolor="#f8f8f8" scope="col">上架</th>
                  <th width="74" bgcolor="#f8f8f8" scope="col">新品</th>
                  <th width="74" bgcolor="#f8f8f8" scope="col">热销</th>
                  <th width="110" bgcolor="#f8f8f8" scope="col">商品上传时间</th>
                  <th width="170" bgcolor="#f8f8f8" scope="col">操作</th>
                </tr>
                <foreach  name="goodslist" item="val">
                <tr>
                  <td bgcolor="#FFFFFF">{$val['gid']}</td>
                  <td class="datacol" bgcolor="#FFFFFF">{$val['gname']}</td>
                  <td bgcolor="#FFFFFF"><img src="__ROOT__{$val['giname']}"></td>
                  <td bgcolor="#FFFFFF">{$val['cname']}</td>
                  <td class="yccol" bgcolor="#FFFFFF">{$val['gp']}</td>
                  <td class="yccol" bgcolor="#FFFFFF">{$val['gs']}</td>
                  <td class="czcol" bgcolor="#FFFFFF">
                      <if condition="$val['gbast']==1"> <a href="{:U('Goods/Ubast')}?id={$val['gid']}">上架</a>
                      <elseif condition="$val['gbast']==0"/><a href="{:U('Goods/Ubast')}?id={$val['gid']}">下架</a>
                      </if>
                 </td>
                  <td bgcolor="#FFFFFF">
                      <if condition="$val['gnew']==1"> <a href="{:U('Goods/Unew')}?id={$val['gid']}">新品</a>
                      <elseif condition="$val['gnew']==0"/><a href="{:U('Goods/Unew')}?id={$val['gid']}">否</a>
                      </if>
                  </td>
                   <td bgcolor="#FFFFFF">
                      <if condition="$val['ghost']==1"> <a href="{:U('Goods/Uhot')}?id={$val['gid']}">热销</a>
                      <elseif condition="$val['ghost']==0"/><a href="{:U('Goods/Uhot')}?id={$val['gid']}">否</a>
                      </if>
                  </td>
                  <td class="czcol" bgcolor="#FFFFFF">{$val.gtime|date='Y-m-d',###}</td>

                  <td bgcolor="#FFFFFF"><a href="{:U('Goods/update')}?id={$val['gid']}">详情图</a>&nbsp;&nbsp;&nbsp;<a href="{:U('Goods/up')}?id={$val['gid']}">修改封面</a>&nbsp;&nbsp;&nbsp;<a href="{:U('Goods/delete')}?id={$val['gid']}" class="yccol">删除</a></td>
                </tr>
               </foreach>
              <tr>
                <th colspan="11">
                  {$show_ye}
                </th>
              </tr>
              </table>

              <div class="fanye">
                <p class="fytip">联系客服 @15821203194</p>
                <div class="yem">
                  <ul>
                    <li><a href="#">First</a></li>
                    <li><a href="#">&lt;</a></li>
                    <li class="sellify"><a href="#">1</a></li>
                    <li><a href="#">2</a></li>
                    <li><a href="#">&gt;</a></li>
                    <li><a href="#">Last</a></li>
                  </ul>
                </div>
              </div>
            </div>
            <div id="tabCot_product_2" class="tabCot"  style="display: none;"> 2222222222 </div>
            <div id="tabCot_product_3" class="tabCot"  style="display: none;"> 3333333333 </div>
            <script language="JavaScript" type="text/javascript" src="js/tab.js"></script> 
          </div>
        </div>
      </div> 
    </div>
  </div>
</div>
<div class="footer"></div>
</body>
</html>

</block>